#include "sceneLight.h"

sceneLight::sceneLight(string n)
{
	name = n;
	direction = D3DXVECTOR3();
	color = D3DXVECTOR4();
	D3DXMatrixIdentity(&objectMatrix);
	enabled = true;
}

sceneLight::sceneLight(string n, D3DXVECTOR3 dir, D3DXVECTOR4 col, D3DXMATRIX mat)
{
	name = n;
	direction = dir;
	color = col;
	objectMatrix = mat;
	enabled = true;
}

string sceneLight::getName()
{
	return name;
}

void sceneLight::setEnabled(bool w)
{
	enabled = w;
}

//setter-getters
D3DXMATRIX sceneLight::getMatrix()
{
	return objectMatrix;
}
void sceneLight::setMatrix(D3DXMATRIX matrix)
{
	objectMatrix = matrix;
}

D3DXVECTOR4 sceneLight::getColor()
{
	return color;
}

void sceneLight::setColor(D3DXVECTOR4 c)
{
	color = c;
}

D3DXVECTOR3 sceneLight::getDirection()
{
	return direction;
}

void sceneLight::setDirection(D3DXVECTOR3 d)
{
	direction = d;
}